{% extends 'html/base.html' %}

{% block title %}
{{ movies.first.name }} 视频_一部电影网
{% endblock %}

{% block custom_css %}
    <link href="https://cdn.bootcdn.net/ajax/libs/video.js/7.10.1/alt/video-js-cdn.min.css" rel="stylesheet">
    <script src='https://cdn.bootcdn.net/ajax/libs/video.js/7.10.1/video.min.js'></script>
    <script src="https://cdn.bootcdn.net/ajax/libs/videojs-contrib-hls/5.15.0/videojs-contrib-hls.min.js"></script>
{% endblock custom_css %}

{% block description %}
{{ movies.first.name }}，{{ movies.first.name }}免费在线观看完整版，由'一部电影网'为您提供。{{ movies.first.name }}电影简介和剧情介绍,{{ movies.first.name }}影评
{% endblock %}

{% block keywords %}{{ movies.first.name }},{{ movies.first.name }}视频,{{ movies.first.name }}观看{% endblock %}
<!-- ,{{ movies.first.name }}高清完整版免费在线观看,{{ movies.first.name }}下载,{{ movies.first.name }}高清迅雷下载,{{ movies.first.name }}完整版 -->

{% block content-head %}
<div style="font-size: 2.25rem; padding-bottom:.6rem; line-height:1.2; border-bottom: 1px solid #eee; margin: 1rem auto;">
    <span style="display: inline; ">
        <a title="主页,一部电影网官网主页" style="color: #333333; text-decoration: none" class="md-header-anchor" href="/">
            <img alt="logo,一部电影网logo" style="height: 3rem; width: 3rem;" src="/static/logo/logo.png">
            <span style="margin: -.4rem">一部电影网</span>
        </a>
        <a href="/movie/{{ movies.first.id }}" style="text-decoration: none; margin-left: .4rem;" title="{{ movies.first.name }}">
            <span style="font-size: .3rem;font-weight: bold;color: #333333;">
                <h1 style="display: inline; border-bottom: none;">{{ movies.first.name }}</h1>
            </span>
        </a>
    </span>
    <span style="font-size: .3rem; margin-left: .6rem;">一起迎接有温度的每一天</span></div>
{% endblock %}

{% block content %}
<div style="margin: 0;">
    {% if "iframe" in movies.first.movie_url %}
        <iframe title="{{ movies.first.name }}-{{ movies.first.name }}在线观看-{{ movies.first.name }}高清在线-一部电影网{{ movies.first.name }}" class="myVideo" style="height: 34rem; object-fit: cover;" src="{{ movies.first.movie_url|slice:":-7" }}" frameborder="0"></iframe>
    {% else %}
   <!-- <video src="{{ movies.first.movie_url }}" class="myVideo video-js vjs-default-skin vjs-big-play-centered" data-setup='{}' style="display:inline-block; height: 34rem;" controls poster="/upload/{{ movies.first.head_pics }}" referrerpolicy="no-referrer" title="{{ movies.first.name }}-{{ movies.first.name }}视频-一部电影网{{ movies.first.name }}">
        <source src="{{ movies.first.movie_url }}" type="{% if "mp4" in movies.first.movie_url %}video/mp4{% elif "mkv" in movies.first.movie_url %}video/mkv{% else %}application/x-mpegURL{% endif %}">
    </video>
   -->
    <video src="{{ movies.first.movie_url }}" class="myVideo video-js vjs-default-skin vjs-big-play-centered" referrerpolicy="no-referrer" style="display:inline-block; height: 34rem;" controls poster="/upload/{{ movies.first.head_pics }}" title="{{ movies.first.name }}-{{ movies.first.name }}视频-一部电影网{{ movies.first.name }}">
        <source src="{{ movies.first.movie_url }}" type="{% if "mp4" in movies.first.movie_url %}video/mp4{% elif "mkv" in movies.first.movie_url %}video/mkv{% else %}application/x-mpegURL{% endif %}">
        {% if {{ movies.first.subtitle }} %}
            <track default kind="captions" srclang="cn" src="{{ movies.first.subtitle }}">
        {% endif %}
    </video>
    {% endif %}
</div>
<div style="overflow: hidden; position: relative;">
    <p style="margin: 1px; font-weight: bold; color: #4183c4;"><a title="{{ movies.first.name }}" style="text-decoration: none;" href="/movie/movies.first.id">{{ movies.first.name }}</a></p>
    <p style="margin: 1px; width: 100%">标签：</p>
    <p style="margin: 1px; width: 100%"><span>上传时间：{{ movies.first.up_time|date }}</span></p>
    <p style="margin: 1px; width: auto">上映时间：{{ movies.first.pub_time|date }}</p>
    <p style="margin: 1px; width: auto">国家：{{ movies.first.country }}</p>
    <p style="margin: 1px; width: auto">演员：{{ movies.first.actors }}</p>
    <a title="{{ movies.first.name }}简评,一部电影网" href="/eval/{{movies.first.id}}" target="_blank"><div style="position: absolute; top: 0; right: 0;position: absolute; border-bottom: .1rem solid #4183c4; color: #4183c4;">查看影评</div></a>
</div>
    <div>
        <hr>
        <p><span>{{ movies.first.validity|safe }}</span></p>
    </div>
    <hr>
  
<div style="font-size: 1.5rem; margin-bottom: .3rem; "><a title="历史推荐,一部电影网历史推荐" style="text-decoration: none;" href="/list" target="_blank"><span style="color: #555555;">历史推荐</span></a><a title="历史推荐,一部电影网历史推荐" href="/list" target="_blank"><span style="float: right; color: #555555;">更多</span></a></div>
<div>
{% for movie in movies|slice:"1:5" %}
    <div class="div-inline" style='height: auto;{% if "phone" in dev %}width:100%;{% else %} width:15rem; height:12rem{% endif %}'>
        <a class="md-header-anchor" title="{{ movie.name }}-{{ movie.name }}在线免费观看-一部电影网" href="/movie/{{ movie.id }}"><img class="div-img" alt="{{ movie.name }}-{{ movie.name }}封面图-一部电影网" alt="{{ movie.name }}-{{ movie.name }}封面图-一部电影网" src="/upload/{{ movie.head_pics }}" style="object-fit: cover;height: 10rem;"></a>
        <br>
        <a class="md-header-anchor" style="text-decoration: none;" title="{{ movie.name }}-{{ movie.name }}在线免费观看-一部电影网" href="/movie/{{ movie.id }}"><span style="color: #4183c4; ">{{movie.name}}</span></a>
    </div>
{% endfor %}
</div>
<br>
{% endblock %}
